import request from "@/utils/request"
import { AddParams, ReqFindSchoolParams } from "@/views/repair/types"

// 查询学校
export function reqFindSupermarket(params: Partial<ReqFindSchoolParams>) {
    return request({
        url: '/findAllFixApply',
        method: 'post',
        data: params,
    })
}
// 添加商超
export function reqaddSupermarket(params: Partial<AddParams>) {
    return request({
        url: '/addFixApply',
        method: 'post',
        data: params,
    })
}
// 添加信息
export function reqAddMessage(params: any) {
    return request({
        url: '/addMessage',
        method: 'post',
        data: params,
    })
}
// 受理
export function reqAcceptedFixApply(params: Partial<AddParams>) {
    return request({
        url: '/acceptedFixApply',
        method: 'post',
        data: params,
    })
}

// 删除商超
export function reqRemoveSupermarket(params: { id: string }) {
    return request({
        url: '/removeFixApply',
        method: 'post',
        data: params,
    })
}